package com.ricchieri.reports;

import java.io.Serializable;

import com.ricchieri.common.BusinessSettings;
import com.ricchieri.reports.CharterReport;
import com.ricchieri.reports.ReportTemplate;

public class ReportFactory implements Serializable {

	private static final long serialVersionUID = -2264354391933046261L;

	public static ReportTemplate getReport(String reportType) {
		
		if(reportType.equals(BusinessSettings.CHARTER_REPORT)) {
			return new CharterReport();
		} else if(reportType.equals(BusinessSettings.SCHEDULE_CHARTER_STATUS_REPORT)) {
			return new ScheduleCharterStatusReport();
		} else if(reportType.equals(BusinessSettings.RESERVATION_REPORT)) {
			return new ReservationReport();
		}
		return null;
	}
}
